// 对数据库进行初始化操作
const sequelize = require('./dbConnect');

const AdminModel = require('./model/adminModel');

async function init() {
    await sequelize.sync({alter:true})

    const adminCount = await AdminModel.count()

    if (adminCount == 0) {
        console.log('表中无数据')
    }

    console.log('初始化admin数据完毕')

}

init()
